home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / etc / emacs / site-start.d / 50dictionaries-common.el next >
Encoding:
Text File  |  2006-07-12  |  1.4 KB  |  39 lines

  1. ;; File: startup.el.in
  2. ;; Description: Emacsen startup for dictionaries-common in Debian
  3. ;; Authors: Rafael LaboissiΦre <rafael@debian.org>
  4. ;;          Agustin Martin     <agmartin@debian.org>
  5. ;; Created on: Fri Oct 22 09:48:21 CEST 1999
  6.  
  7. (if (member debian-emacs-flavor '(emacs19
  8.                                   emacs-snapshot))
  9.     (message "Skipping dictionaries-common setup for %s" debian-emacs-flavor)
  10.  
  11.   (debian-pkg-add-load-path-item
  12.    (concat "/usr/share/"
  13.        (symbol-name debian-emacs-flavor)
  14.        "/site-lisp/dictionaries-common"))
  15.   
  16.   (autoload 'flyspell-word "flyspell" nil t)
  17.   (autoload 'flyspell-mode "flyspell" nil t)
  18.   (autoload 'flyspell-prog-mode "flyspell" nil t)
  19.   
  20.   ;; Load the emacsen cache file, containing calls to
  21.   ;; debian-ispell-add-dictionary-entry for each installed dictionary.
  22.   ;; Since this might result in a call to debian-ispell do this only if 
  23.   ;; it exists, that is, if package is not removed
  24.   
  25.   (if (not (file-exists-p "/usr/share/emacs/site-lisp/dictionaries-common/debian-ispell.el"))
  26.       (message "Info: Package dictionaries-common removed but not purged.")
  27.     (load "debian-ispell" t)
  28.     (load "/var/cache/dictionaries-common/emacsen-ispell-dicts.el" t))
  29.   )
  30.  
  31. ;;; Previous code for loading ispell.el and refreshing spell-checking
  32. ;;; pulldown menus has been removed from this file since it should no
  33. ;;; longer be needed.
  34.  
  35. ;;Local Variables:
  36. ;;mode: lisp
  37. ;;End:
  38.  
  39.